function hasKeys(object, inherit) {
  return (inherit ? _.keysIn : _.keys)(object).length > 0;
}
Checks if an object has at least one own or inherited enumerable.

@static
@memberOf _
@category Object
@param {Object} object The object to delete the properties from.
@param {boolean} [inherit] Allow inherited enumerable.
@returns {boolean} Returns true if the object has at least one own or inherited enumerable.