def qs_opt_eq(qs, opt, value):
    """
    Returns True if the query string option is equal to value.
    """
    for opt_value in qs.get(opt, []):
        if opt_value == value:
            return True