Variable or Function To Detect When HA Is Still Loading?

I have a few things that get errors when I restart HA because their dependencies aren’t loaded yet which made me wonder if there is a way in Jinja or conditions to detect that HA is still starting. I know there is a platform that you can use to trigger something after it has started but I’m not sure if this can be utilized in a script or template entity. Sort of a makeshift dependency checker of sorts.

I’m hoping to do something like:

{% if hass.isstarted %}
 ...
{% endif %}

This isn’t the end of the world but it would be nice to clean up errors on startup that are only there because some other integration/entity/addon hasn’t started yet.