private Function<List<AItem>, AItem> singleAItemFunction(long itemIdToValidate) {
        return aItems -> {
            if (aItems.isEmpty()) {
                throw new AMenuConfigurationException("Item with id: " + itemIdToValidate + " does not exist.");
            } else if (aItems.size() == 1) {