Remove unpythonic code and replace with saner version (previously was "if var is False:", now "if not var:")