code: def check_archive_filelist (filenames):
      
      if not filenames:
          raise PatoolError("cannot create archive with empty filelist")
      for filename in filenames:
          check_existing_filename(filename, onlyfiles=False)
docs: Check that file list is not empty and contains only existing files.