/** * Add IMode into service, only if not exists. * @param IMode $mode */ public function addModeOnlyNew(IMode $mode) { try { $this->modeStorage->addMode($mode); } catch (InvalidArgumentException $e) { } return $this; }