Returns whether the project has the specified task.
1 task task
the task to check.
2 number stage
the stage to check within. If none is provided, will check in all stages.
1 bool
the state.