def check_if_capture_name_is_unique(name, cm):
  """Checks if a capture name is unique.

  Arguments:
    name - A String representing the capture name
    cm - A ComManager object

  Returns:
    A True if the name is unqiue, False otherwise
  """
  query = '''select * from Captures where name = '{0}' '''.format(name)
  results = cm.execute_query(query)
  return len(results) == 0