I'm not sure I follow. If `params` is defined, then `params.key` can never be a `ReferenceError`. It will just return `undefined` or the actual value. If `params` is not defined then `typeof params.key` will throw a `ReferenceError` as well.