Use an "early return" idiom for the error case. NFC