check if task_id is defines in twig