(c) Definition.— For purposes of this section, a defendant is deemed to be a prevailing party if both of the following occur:
(1) The defendant:
- (i) Alleges in its answer that it tendered to the plaintiff the full amount to which the plaintiff was entitled.
- (ii) Deposits the amount with the court.
- (2) The allegation in paragraph (1)(i) is found to be true.