[BUGFIX] Invalid argument supplied for foreach in ExtensionModelUtility