_.has checks that obj is object before checking for key

If the object passed is not an object, an exception is thrown.