If you've kicked your afternoon coffee habit and stopped looking at your blue-light emitting phone before bed but still can't sleep, it might be time to take another look at what you're eating before you go to bed.

"Sleep is part of your overall health so the same things that you do to take care of your body and health are good for your sleep," says Janet K. Kennedy (a.k.a. NYC Sleep Doctor), a clinical psychologist and sleep specialist in New York City. "If you're snacking at night, make sure it's a healthy snack that's not loaded with sugar, which can alter blood sugar. Eliminating foods one by one will give you a sense if one may be affecting your sleep."

Here, Kennedy reveals foods that may be keeping you awake at night and the surprising reason why you should choose ice cream over cookies as a nighttime snack.