public function destroy(Event $event) { if ($this->Cookie->check($this->_cookieName)) { $this->Cookie->delete($this->_cookieName); } }