/** * @return bool */ public function onUpdate() { if (!$this->exists()) { return $this->onCreate(); } elseif ($this->name() && $this->website->isDirty('identifier')) { return $this->onRename($this->website->getOriginal('identifier'), $this->website->name()); } }