define if a given input is an array