public function offsetExists($attribute) { if ($attribute == 'name' || $attribute == 'value') { return isset($this->pop_image[$attribute]); } return parent::offsetExists($attribute); }
/** * Checks if a data attribute exists. * * @param string $property * * @return bool */ public function offsetExists($property) { return $this->element->offsetExists(self::serialize_property($property)); }