Couldn't we just cast the `char` into an `int` and test its value rather than relying on a `try/catch` statement?