Use != rather than not == for value comparison