diff --git a/src/Model/AppConfig.php b/src/Model/AppConfig.php
index <HASH>..<HASH> 100644
--- a/src/Model/AppConfig.php
+++ b/src/Model/AppConfig.php
@@ -91,7 +91,7 @@ class AppConfig
         }
 
         // The `web` section has changed to `web`.`locations`.
-        if (isset($config['web']['document_root']) && !isset($config['web']['locations'])) {
+        if (isset($config['web']['document_root']) && empty($config['web']['locations'])) {
             $oldConfig = $config['web'] + $this->getOldWebDefaults();
 
             $location = &$config['web']['locations']['/'];
Fix config normalization when there is an empty locations array