def _check_mem(handle, bool_return=False):
    """Checks for 'memory block' bytes (Private)."""
    if handle.read(1) == b'*':
        return True
    elif not bool_return:
        raise ValueError('Expected LIF memory byte at ' + str(handle.tell()))
    else:
        return False
