code: function(err, data){
        if (err) error = err;
        allLayers.push(data);
        if (allLayers.length == totalLayers){
          callback(error, allLayers);
        }
      }
docs: closure to check each layer and send back when done