for some reason, this is not working.

$_submenu_items = array_map(
        function($top_level_page) {
            return get_sub_navigation(str_replace($host_dir, '', $top_level_page['url']));
        },
        $_top_level_pages);