def METHOD_NAME(font):
  headline("Checking for path directions")
  ok = True
  for layer, g in masterLayersIterator(font):
    firstPath = layer.paths[0]
    if firstPath and firstPath.direction != -1:
      ok = False
      if len(layer.paths) > 1:
        msg = "Bad path order or direction."
      else:
        msg = "Bad path direction."
      log(g.name, layer.name, msg)
  if ok:
    print("OK")