nil check for tasks