public function hasSlugChanged($id, $slug) { if (!is_numeric($id) || !$this->exists($id)) { throw new NotFoundException(__d('croogo', 'Invalid Term Id')); } return $this->field('slug', array($this->escapeField() => $id)) != $slug; }