No need to do two comparisons per loop when one will do.