src/Viserio/Provider/Twig/Loader.php
public function exists($name): bool
    {
        try {
            $this->findTemplate($name);
        } catch (LoaderError $exception) {
            return false;
        }

        return true;
    }
public function exists($name): bool
    {
        try {
            $this->findTemplate($name);
        } catch (LoaderError $exception) {
            return false;
        }

        return true;
    }
{@inheritdoc}