Is it intentional that in the second check "!=" is used instead of "=="?