(a) In this section, “reasonable and necessary expense” includes:
(1) Suit money;
(2) Counsel fees; and
(3) Costs.
(b) At any point in a proceeding under this subtitle, the court may order either party to pay to the other party an amount for the reasonable and necessary expense of prosecuting or defending the proceeding.
(c) Before ordering the payment, the court shall consider:
(1) The financial resources and financial needs of both parties; and
(2) Whether there was substantial justification for prosecuting or defending the proceeding.
(d) On a finding by the court that there was an absence of substantial justification of a party for prosecuting or defending the proceeding, the court may award to the other party the reasonable and necessary expense of prosecuting or defending the proceeding.
(e) The court may award reimbursement for any reasonable and necessary expense that previously has been paid.
(f) As to any amount awarded for counsel fees, the court may:
(1) Order that the amount awarded be paid directly to the lawyer; and
(2) Enter judgment in favor of the lawyer.