Cleaned up the add method by removing the second if statement and condensing its functionality into the first.