Using Liquid to detect the presence of a Recharge Subscription Product on Checkout

I’m having an issue using Recharge and I am hoping that someone on this forum can help me out.

The Problem: I am working on a Shopify Plus store and the store uses Recharge to allow customers to buy products on a subscription. I need to render some html on the checkout.liquid file only if the cart has a Recharge Subscribe & Save product inside of it before starting checkout.

Is there anyway I can check for the presence of a Subscription product in the cart with Liquid? If I were to use JavaScript I could just target a class unique to Subscription products and enter the html I want to render into the DOM, but I would like to avoid adding an extra script to the page.

if you using plus and using recharge also inside the loop of products recharge have line item properties which indicated about use of recharge.
so if line item properties related to recharge is available on checkout then it need to render your custom HTML.

I guess you can check if the variant of the line item requires a selling plan? https://shopify.dev/api/liquid/objects/variant#variant-requires_selling_plan