How about throwing the exception early? Then you won't need the `else` branch.