public static boolean toBoolean(final byte[] b) {
    if (b.length != 1) {
      throw new IllegalArgumentException("Array has wrong size: " + b.length);
    }
    return b[0] != (byte) 0;
  }
Reverses {@link #toBytes(boolean)}
@param b array
@return True or false.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java