It's somewhat more performant without the if test in both situations, when it passes and when it fails