function doesArrayContainSibling(array, layer) {
  if (!array || !layer) return

  var parent = layer.parentGroup()
  return array.find(function(layer){
    return layer.parentGroup() == parent
  })
}
Returns if the given array contains a sibling to the layer