   /// - Returns: The index path for the note.
   private func indexPathForNote(atIndex index: Int) -> IndexPath {
     var itemIndex = index
-    if shouldAllowNoteAdditions {
+    if shouldShowAddNoteCell {
       itemIndex += 1
     }
     return IndexPath(item: itemIndex, section: Section.chartAndNotes.rawValue)

  /// - Returns: The index of the note in the notes array.
  private func indexOfNote(forIndexPath indexPath: IndexPath) -> Int {
    var index = indexPath.item
    if shouldAllowNoteAdditions {
      index -= 1
    }
    return index
  }

  /// Returns true if notes are allowed to be added to this trial
  private var shouldAllowNoteAdditions: Bool {
    return experimentAllowsAdditions && !trial.isArchived
  }
}

  /// - Parameter indexPath: An index path.
  /// - Returns: True if the index path is a trial note in a valid range, otherwise false.
  func isTrialNoteIndexPath(_ indexPath: IndexPath) -> Bool {
    if shouldShowAddNoteCell {
      return indexPath.section == Section.chartAndNotes.rawValue && indexPath.item > 0 &&
          indexPath.item <= displayTrial.notes.count
    } else {
