docs: def _check_index(self):
          """Check that the index is without the bounds of _history."""
          assert 0 <= self._index <= len(self._history) - 1
          # There should always be the base item at least.
          assert len(self._history) >= 1