I have seen people using this
            hideTooltip : function() {
               var toolRef = 'population_tooltip';
               if(Helper.tooltipObj[toolRef]){
                  Helper.tooltipObj[toolRef].hide();
               }
           }
The Helper.tooltipObj[toolRef] is an object. and i was wondering how is it working? can you put an object inside IF condition in Javascript(We are using AUI API)?
The function is called when someone clicks a button on a popup on the page(not the javascript alert type popup, kind of select some stuff and press OK popup)
 
     
    