code: public boolean getBooleanValue() throws IOException, SaneException {
      Preconditions.checkState(getValueType() == OptionValueType.BOOLEAN, "option is not a boolean");
      Preconditions.checkState(getValueCount() == 1, "option is a boolean array, not boolean");
  
      ControlOptionResult result = readOption();
      return SaneWord.fromBytes(result.getValue()).integerValue() != 0;
    }
docs: Reads the current boolean value option. This option must be of type
  {@link OptionValueType#BOOLEAN}.
  
  @throws IOException if a problem occurred while talking to SANE