asks first if array size >0