code: 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;
      }
docs: Checks if a value for this widget base type with the given id is available.<p>
  
  This should only be used if the base object is a collection.<p>
  
  @param index the index to check
  
  @return <code>true</code> if a value for this widget base type with the given id is available