code: public function isMatch(string $variable, array &$matches = []): bool
      {
          $token = $this->tokenStorage->getToken();
  
          if (!$token) {
              return false;
          }
  
          if (!preg_match(static::PATTERN, $variable, $matches)) {
              return false;
          }
  
          return true;
      }
docs: {@inheritdoc}