public function __get($propertyName) { if ($this->has($propertyName)) { return $this->getShared($propertyName); } return null; }