Prefer to check if `!isset` and then `throw` to avoid the extra indentation level. Exceptional cases should be at the beginning and stop execution early.