then we should use `iterator_to_array` instead of `->toArray`