Reduce needless inverted condition