public function hasOtherWithName($name) { foreach ($this->others as $other) { if ($name === $other->getName()) { return true; } } return false; }