Not a big deal, but putting this in the `else` (rather than just after the `if`) seems unnecessary, given an error is raised above.