diet api return null when foods.length = 0