In additon to elisolution's reply previously mentioned, this also checks no matter whether we are literally on the home webpage (not simply if the canonical was set or not). I analyzed this Answer somewhat and so far as I am able to see, it works as expected. Or else, be sure https://socialimarketing.com/story4752200/5-simple-statements-about-automatyczne-tagi-hreflang-i-tagi-kanoniczne-seo-explained