def _couple_exists(dict_, a, b):
    """Check if couple exists in a dict"""
    if a in dict_:
        if dict_[a] == b:
            return True
    if b in dict_:
        if dict_[b] == a:
            return True
    return False