gawk provides a single function that lets you distinguish
an array from a scalar variable. This is necessary for writing code
that traverses every element of a true multidimensional array
(see Arrays of Arrays).
isarray(x)
Return a true value if x is an array. Otherwise return false.