private function shouldCheckTerms(Event $event)
 {
     $hasToken = $this->tokenStorage->getToken() instanceof TokenInterface;
     if (!$hasToken || false === $this->authChecker->isGranted('ROLE_USER')) {
         return false;
     }
     if ($this->authChecker->isGranted('ROLE_SKIP_TOS_AGREEMENT')) {
         return false;
     }
     if ($event instanceof FilterControllerEvent) {
         $controller = $event->getController();
         if (!is_array($controller)) {
             return false;
         }
         if ($controller[0] instanceof AsseticController || $controller[0] instanceof ProfilerController) {
             return false;
         }
     }
     return true;
 }