protected function hasCache(string $templatePath)
    {
        $cache = $this->cache->get($this->cacheKey);

        return array_key_exists($templatePath, $cache);
    }
protected function hasCache(string $templatePath)
    {
        $cache = $this->cache->get($this->cacheKey);

        return array_key_exists($templatePath, $cache);
    }
@param string $templatePath

@return bool
@throws \Psr\SimpleCache\InvalidArgumentException