Simplify bool expression

BTW, I do not understand the usefulness of the `if`. Is that `if` necessary at all?