function canLayerHaveSpacing(layer) {
  if (!layer) return false
  return layer.isMemberOfClass(MSLayerGroup) || layer.isMemberOfClass(MSArtboardGroup) || layer.isMemberOfClass(MSPage)
}
Return if a layer can have spacing associated with it