hasDay() function for timetable