Update _.hasPath

options = { options: false };

_.hasPath(options, 'options.options') would result in error about not being able to use in to find 'options' in false.

this fixes that