fixed isNot() method