Return array from index