handle zero-sized arrays in quantiles