btremBut if foo is iterable /does/ work. I guess I can use that, but the code is still unwieldy. When something is either a string or an array, I use a filter to conditionally turn it into an array. Wonder if I can do that if it's an object, turn it into an array of objects. Off to check.