public function __isset($propertyName) { if ($this->throwExceptionInIsset) { throw new \DomainException('__isset exception: ' . $propertyName); } return true; }