docs: public boolean hasValue(int index) {
  
          if (m_baseCollection instanceof List) {
              return index < ((List<?>)m_baseCollection).size();
          } else if (m_baseCollection instanceof SortedMap) {
              return index < ((SortedMap<?, ?>)m_baseCollection).size();
          }
          return false;
      }