Refactor getIsDone to isDone for task