Applied DeMorgan's law to make boolean expression more clear