When undue proximity to the ground is detected by a flight crew member or by a ground proximity warning system, the pilot flying shall take corrective action immediately to establish safe flight conditions.