code: public boolean isItemSelected(final int index) {
          checkIndex(index);
          OptionElement item = selectElement.getOptions().getItem(index);
          Option option = itemMap.get(item);
          return option != null && option.isSelected();
      }
docs: Returns <code>true</code> if the item at the given index is selected.<br>
  <br>
  <b>Note</b>: if the item at the given index is a divider, this method
  always returns <code>false</code>.
  
  @param index
  @return