Added a check to make sure the feeder has food before feeding.