diff --git a/src/ArchiveValidator.php b/src/ArchiveValidator.php index 2777e40..881138e 100644 --- a/src/ArchiveValidator.php +++ b/src/ArchiveValidator.php @@ -42,7 +42,7 @@ public static function validate(array $files, $extensions) { // Check that entry point file exists. $top_dir = $root_files[0]; $top_level = $tree[$top_dir]; - if (!array_key_exists(AssetInterface::INDEX_FILE, $top_level)) { + if (!isset($top_level[AssetInterface::INDEX_FILE])) { throw new InvalidContentArchiveException([sprintf('Missing required %s file.', AssetInterface::INDEX_FILE)]); }