check to see if a task exists before adding it