remove double negatives from if