check if kind of array