diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 975b5d00099ffb1302694a0543391d1c0b903a2b..f06c2fcd66c463c54af5d1efa83326b5fdbd161e 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -843,7 +843,7 @@ class View {
 				$data = $cache->get($internalPath);
 			}
 
-			if ($data and $data['fileid']) {
+			if ($data and isset($data['fileid'])) {
 				if ($includeMountPoints and $data['mimetype'] === 'httpd/unix-directory') {
 					//add the sizes of other mountpoints to the folder
 					$mountPoints = Filesystem::getMountPoints($path);