public function isUrl(string $url, bool $isRegex = false) : bool
    {
        if ($isRegex) {
            return preg_match('#^' . $url . '$#', $this->getFullUrl()) === 1;
        } else {
            return $this->getFullUrl() == $url;
        }
    }