Added condition to prevent evaporation if liquid is depleted