1. If the court, as a matter of law, finds that:
- a. A rental agreement or any provision of it was unconscionable when made, the court may refuse to enforce the agreement, enforce the remainder of the agreement without the unconscionable provision, or limit the application of an unconscionable provision to avoid an unconscionable result.
- b. A settlement in which a party waives or agrees to forego a claim or right under this chapter or under a rental agreement was unconscionable at the time it was made, the court may refuse to enforce the settlement, enforce the remainder of the settlement without the unconscionable provision, or limit the application of an unconscionable provision to avoid any unconscionable result.