getOwner()->guid == $this->guid; } /* * Check whether this agent is a member of the given object */ public function isMemberOf(object $obj) : bool { foreach ($obj->getMembers() as $memb) { if ($memb->guid == $this->guid) return true; } return false; } } ?>