42 Pa.C.S. § 9726
(b) Fine as additional sentence.— The court may sentence the defendant to pay a fine in addition to another sentence, either involving total or partial confinement or probation, when:
(c) Exception.— The court shall not sentence a defendant to pay a fine unless it appears of record that: