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