check if array is passed