Little algorithm cleanup to remove a superfluous comparison