Negate if conditions and avoid leakage