public function isHome() { if (empty($this->request->params['plugin'])) { return false; } return $this->request->params['plugin'] == 'blog' && $this->request->params['controller'] == 'blog' && $this->request->params['action'] == 'index'; }