Update _.hasPath and _.getPath

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
It's not necessary here