Updating to use core_hasOwn (hasOwnProperty) instead of type checking
for typeof === 'object'