By the way, when comparing simple variables, it does not matter if you use an identity test (is) or an equality test (==). It does matter however when used to check methods or attributes of variables. In these two cases, an equality test can cause a break when the method or attribute (like variable.content) cannot be evaluated. Identity test does not evaluate, so you're basically right to prefer "is not". ;)