Edit the existing Python code to make the program more efficient.
def sum_array(array):
  total = 0
  for element in array:
    total += element
  return total
def sum_array(array):
  total = 0
  for element in array:
    total = total + element
  return total