function layerHasPadding(layer) {
  if (!layer) return false
  if (!canLayerHavePadding(layer)) return false

  var paddingString = layerPaddingString(layer)
  if (!paddingString) return false

  return (paddingFromString(paddingString) != null)
}
Return if a layer already has padding associated