What about checking each query key and if an Array, then to join?