public function compareUrls($lhs, $rhs = null, $parts = []) {
        if ($rhs == null) {
            $rhs = Router::url();
        }
        $lhs = $this->_normalize($lhs, $parts);
        $rhs = $this->_normalize($rhs);
        return $lhs !== null && $rhs !== null && strpos($rhs, $lhs) === 0;
    }