public function image() { if ($this->_image instanceof Image) { return $this->_image; } else { throw new CException('Don\'t have image'); } }