Remove needless branching for bool attrs