src/Api/Resolver/ApiResolver.php
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;
    }
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;
    }
{@inheritdoc}