Simplify if-else by dropping needless negation