controller.assert( function(){ var val = true; if( controller.tabs.length > 1 ) tabBrowser.selectedIndex = 0; else val = false; return val; } );