Remove negation from if clause