added checking for null Vector<Task> for checkForTaskExpiry