make list_arrays() handle empty list