If it has an air gap, then, by definition, all the water in the hose above the bottom of the dishwasher will drain back into it, if the pump's check valve does not hold which few of them do. That being the case, it might be better to keep the hose low, i.e., below the cabinet's floor, until it gets to the sink cabinet to minimize the amount of water subject to that backflow.