isRoot(id) {
    return this.getPositionById(id) >= this.length - 1;
  }
Whether a component is the root component (the last one in the list)
@param {ComponentId} id Id of the component to query if it is the root
@returns {boolean} true if the component is the last in the list