How should I know whether the merchant has opened the app embeds?

I am developing an app to help merchants optimize their stores. This app is embedded in the theme. How should I know whether the merchant has opened the app embeds? Because if the merchant has not opened it, I need to remind him in the management background

You should be able to read the theme files using the following API:

Then simply read the JSON to see if your app embed has been added.