function (page) {
            return (page && page.children && Object.keys(page.children).length > 0) ? true : false;
        }
function (page) {
            return (page && page.children && Object.keys(page.children).length > 0) ? true : false;
        }
function ( page ) { return ( page && page . children && Object . keys ( page . children ) . length > 0 ) ? true : false ; }
Check if given page has children *
Check if given page has children *