Added auxiliar function isTaskTypeArgs.