remove unnecessary determination on boolean statement