If the judge finds that you are at fault, then you will have to pay. If the judge finds that you are not at fault, then you will not have to pay.
If the judge finds that you are at fault, then you will have to pay. If the judge finds that you are not at fault, then you will not have to pay.