Switching from try/catch to precondition checks.