use ===, not ==. Yeah, I know, not technically necessary, but with === you don't have to think about it.