Small refactor in the indexer getter.