def unary_undefined(prev_u, m):
    """given u_{i - 1} and m_{i},
    returns True if u_{i} is undefined,
    False if defined"""
    if m is None:
        return True
    if m == 0 and prev_u is not None and prev_u % 2 == 0:
        return True
    else:
        return False
