Please simplify - use `foo !== undefined` instead of `typeof foo != 'undefined'`.

The longer approach is used to support old buggy browsers (AFAIK), there is no need for that in Node.js world.