[CLEANUP] Replace count with empty in EXT:core
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Cache / Backend / FileBackend.php
index 3afac38..e8f7a3d 100644 (file)
@@ -360,7 +360,7 @@ class FileBackend extends \TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend implem
        protected function findCacheFilesByIdentifier($entryIdentifier) {
                $pattern = $this->cacheDirectory . $entryIdentifier;
                $filesFound = glob($pattern);
-               if ($filesFound === FALSE || count($filesFound) === 0) {
+               if ($filesFound === FALSE || empty($filesFound)) {
                        return FALSE;
                }
                return $filesFound;