In additon to elisolution's solution earlier mentioned, this also checks no matter if we are literally on the home web page (not just whether or not the canonical was set or not). I analyzed this solution a tiny bit and as far as I can see, it really works as expected. https://bookmarkvids.com/story20528778/the-tag-hreflang-automatici-e-tag-canonici-seo-diaries