refactoring: remove double negation