why using `indexOf` here? I thought `installedExtensions` is a Object not an array.