'', 'user_type' => 'consultant']; $currentPath = parse_url($_SERVER['REQUEST_URI'] ?? '', PHP_URL_PATH); $isActive = fn(string $href): string => str_starts_with($currentPath, $href) ? ' active' : ''; ?>