function findLayerInLayer(
  name,
  exactMatch,
  type,
  rootLayer,
  subLayersOnly,
  layersToExclude
) {
  let result = findLayersInLayer(name, exactMatch, type, rootLayer, subLayersOnly, layersToExclude)

  // return first layer in result
  if (result.length) return result[0]
}
Finds a single layer in the root layer.

@param {String} name
@param {Boolean} exactMatch
@param {String} type
@param {MSLayer} rootLayer
@param {Boolean} subLayersOnly
@param {Array} layersToExclude
@returns {MSLayer}