import struct


def get_bool(s: bytes) -> bool:
    """
    Get bool value from bytes
    :param s: bytes array contains bool value
    :return: bool value from bytes array
    """
    if str(s) == "b\'F\'":
        return False
    elif str(s) == "b\'T\'":
        return True
    else:
        return struct.unpack('?', s)[0]