condensed a boolean statement