code: function( map ){
        var empty = true;
  
        if( map != null ){
          for(var i in map){
            empty = false;
            break;
          }
        }
  
        return empty;
      }
docs: has anything been set in the map