Simplify bool expression

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