Doesn't have en else, is this expected? Or should we throw an unexpected code error if we don't recognize the code?