check if array is smaller