Exception checks before logic (code style)