I'm not following the change here - you are negating the result here and then negate it when checking.

Isn't the end result the same thing ?

Maybe time for adding a test for this logic?