Early return is preferred, like this:

if (!is_inttype(...))
  error("...")
[code for the non-error case follows ...]