public function hasId() { $result = $this->object->hasId(); return $result === $this->object ? $this : $result; }