def Crosses(ps, thresh):
    """Tests whether a sequence of p-values ever drops below thresh."""
    if thresh is None:
        return False

    for p in ps:
        if p <= thresh:
            return True
    return False