public function __isset($name) { if (!$this->eavEnable) { return parent::__isset($name); } if ($this->hasEavAttribute($name)) { if (isset($this->newEavAttributes[$name])) { return true; } else { if (array_key_exists($name, $this->oldEavAttributes)) { return false; } } if ($this->getIsNewRecord()) { return false; } return is_null($this->getEavValue($name)) ? false : true; } else { return parent::__isset($name); } }