don't use == to check for inequality

When I compared the code to the comment, I pretty much just went "wait a
minute" and suddenly a whole lot of stuff just started making sense