def check_obs(idx, obs):
    """Check every term in every sequence of obs and see if any term is >= idx
    or < 0. If true, return false. Otherwise return true.
    """
    for o in obs: 
        for term in o: 
            if (term >= idx) or (term < 0):  
                return False 
    return True