docs: def is_prefix(cls, path):
          """
          Check if a path is a valid prefix
  
          Args:
              path(str): path to be checked
  
          Returns:
              bool: True if the given path is a prefix
          """
          lagofile = paths.Paths(path).prefix_lagofile()
          return os.path.isfile(lagofile)