I'd rather have this validation be on the UI level. Would you mind doing input validation instead of this kind of check?