Do you mean tell if a shell variable is an array? Unices don't have a concept of "arrays", but shells do.
In bash, "$#" tells you the length of a variable, so "${#foo}" (or "${#foo[@]}") will tell you the number of items in $foo. If "[ ${#foo} -gt 1 ]", then $foo is an array. In csh, tsch...