code: function(layersContext) {
          var layers = [];
          for (var i=0, len=layersContext.length; i<len; i++) {
              var layer = this.getLayerFromContext(layersContext[i]);
              if (layer !== null) {
                  layers.push(layer);
              }
          }
          return layers;
      }
docs: Method: getLayersFromContext
  Create an array of layers from an array of layerContext objects.
  
  Parameters:
  layersContext - {Array(Object)} An array of objects representing layers.
  
  Returns:
  {Array(<OpenLayers.Layer>)} An array of layers.