Cleaning up the condition negation logic.