Iteration termination condition.