   /// - 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 shouldAllowNoteAdditions {
+    if shouldShowAddNoteCell {
       return indexPath.section == Section.chartAndNotes.rawValue && indexPath.item > 0 &&
           indexPath.item <= displayTrial.notes.count
     } else {

  /// - 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 add note, otherwise false.
  func isAddNoteIndexPath(_ indexPath: IndexPath) -> Bool {
    return shouldShowAddNoteCell &&
      indexPath.section == Section.chartAndNotes.rawValue &&
      indexPath.item == 0
  }
