private function isSiteSearchAction($action) { return $action && $action->getActionType() == Action::TYPE_SITE_SEARCH; }