Understood. `void 0` is not very commonly used in JS, `undefined` is better. `var options = options || {}` should work as you intend and is a better (more standard) way.

By the way there is an error in your `options = options ? {} : options`. It is not in the right order and should be `options = options ? options : {}` (which is exactly equivalent to `options = options || {}`)