You can write it "if not _task_id:"