Couldn't this condition be negated and the error put in the `if` (no need for `else` then)?