check if array is returned