Handle empty array in the subscript operator