Returning index results as array, not object