public function isActive(): bool
    {
        if (! isset($_SERVER['REQUEST_URI'])) { // Input var okay.
            return false;
        }

        $currentUrl = esc_url_raw(
            wp_unslash($_SERVER['REQUEST_URI'])  // Input var okay.
        );

        $matchUrl = str_replace(
            esc_url_raw(get_site_url()),
            '',
            esc_url_raw($this->getUrl())
        );

        return 0 === strpos($currentUrl, $matchUrl);
    }