Replaced "== false" with "!" for stylistic reasons.