I think it'd be better to use `!=` instead of `not ... ==` here.