Finds whether a variable is an array