Loose comparison IMO. See above. And newline before `if` block please.