Added method to check if Task's dateList is empty