does not error if barcode is not scanned or if barcode is not a food item