to check if the descirptor is an data descriptor
@param {descriptor} desc it should be a descriptor better
function isDataDescriptor(desc) {
  return !!desc && desc.hasOwnProperty('value') && isBoolean(desc.configurable) && isBoolean(desc.enumerable) && isBoolean(desc.writable);
}