def boolFromBytes(b):
    """
    Decode the byte as True if 0x01, else False.

    Args:
        b (bytes-like): A length-1 byte buffer with the encoded boolean.

    Returns:
        bool: The decoded value.
    """
    return b == 0x01