Remove unnecessary if statement around dependency array for subtasks