def check_opposite_directions(encoding_directions):
    """
    Check if we have an opposite direction in the list
    """
    for dir in encoding_directions:
        if dir + "-" in encoding_directions:
            return True
    
    return False