check if a task is a subtask