def appendUnique(values, value):
  """
  Adds value to values if it is not already present.
  :param list-of-object values:
  :param object value:
  :return list-of-object:
  """
  new_values = list(values)
  if not value in new_values:
    new_values.append(value)
  return new_values