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