public function __get($name) { return $this->contains($name) ? $this->itemAt($name) : parent::__get($name); }