diff --git a/typo3/sysext/core/Classes/Service/MarkerBasedTemplateService.php b/typo3/sysext/core/Classes/Service/MarkerBasedTemplateService.php
index b8979776be255c58630af355b6aec3d3fd74ea57..b9bcf992c4363f9c596d99e232e1deeda13a1662 100644
--- a/typo3/sysext/core/Classes/Service/MarkerBasedTemplateService.php
+++ b/typo3/sysext/core/Classes/Service/MarkerBasedTemplateService.php
@@ -367,8 +367,9 @@ class MarkerBasedTemplateService
         }
         asort($keysToReplace);
         $storeKey = md5('substituteMarkerArrayCached_storeKey:' . serialize([$content, $keysToReplace]));
-        if ($runtimeCache->get($storeKey)) {
-            $storeArr = $runtimeCache->get($storeKey);
+        $fromCache = $runtimeCache->get($storeKey);
+        if ($fromCache) {
+            $storeArr = $fromCache;
         } else {
             $cache = $this->getCache();
             $storeArrDat = $cache->get($storeKey);