/**
  * Checks if $response coming from LegacyKernelController having a moduleResult.
  * Presence of moduleResult in response clearly indicates that a Twig layout is used, so no CSRF meta tag is present.
  *
  * @see \eZ\Bundle\EzPublishLegacyBundle\LegacyResponse\LegacyResponseManager::generateResponseFromModuleResult()
  *
  * @param \Symfony\Component\HttpFoundation\Response $response
  *
  * @return bool
  */
 private function isLegacyResponse(Response $response)
 {
     return $response instanceof LegacyResponse && $response->getModuleResult();
 }