code: protected function hasCache(string $templatePath)
      {
          $cache = $this->cache->get($this->cacheKey);
  
          return array_key_exists($templatePath, $cache);
      }
docs: @param string $templatePath
  
  @return bool
  @throws \Psr\SimpleCache\InvalidArgumentException