code: function(container, className) {
      // Check if any cartodb-logo exists within container
      var a = [];
      var re = new RegExp('\\b' + className + '\\b');
      var els = container.getElementsByTagName("*");
      for(var i=0,j=els.length; i<j; i++)
        if(re.test(els[i].className))a.push(els[i]);
  
      return a.length > 0;
    }
docs: Check if any class already exists
  in the provided container