code: public function isMatch(string $variable, array &$matches = []): bool
      {
          if (!preg_match(static::PATTERN, $variable, $matches)) {
              return false;
          }
  
          $service = $matches[1];
          $resource = $matches[2];
  
          try {
              $this->api->get($service.'.'.$resource);
          } catch (OutOfRangeException $exception) {
              return false;
          }
  
          return true;
      }
docs: {@inheritdoc}