Output from siprop=namespaces will be an array, rather than an object indexed by namespace number. See T102645.[1] [1]: https://phabricator.wikimedia.org/T102645