@tonydspaniard The better alternative for `typeof some === 'undefined'` is `some === undefined`. Also best practice is to not use ternary operator in patterns like `variable = [any condition] ? variable : [any result]` it could be `if ([condition]) valiable = result`. So this part of code can be changed to:

```
if (enforceRedirect === undefined) { enforceRedirect = true };
```