def has_listener_cert_for_sni(listener_arn, client):
    """
    Describe listener to list certificates in use
    For cert added as SNI listener, it will be listed with both, default true and false
    :param listener_arn:
    :return: True/False
    """
    try:
        listener_certificates = client.describe_listener_certificates(
            ListenerArn=listener_arn
        )

        default_cert = ""

        for cert in listener_certificates["Certificates"]:
            if "IsDefault" in cert and cert["IsDefault"]:
                default_cert = cert["CertificateArn"]
                break

        if not default_cert:
            return False

        for cert in listener_certificates["Certificates"]:
            if "IsDefault" in cert and cert["IsDefault"] is False and cert["CertificateArn"] == default_cert:
                return True

        return False

    except Exception as e:  # noqa
        metrics.send(
            "has_listener_cert_for_SNI_error",
            "counter",
            1,
            metric_tags={
                "error": str(e),
                "listener_arn": listener_arn,
            },
        )
        capture_exception(
            extra={
                "listener_arn": listener_arn,
            }
        )
        raise

    Describe listener to list certificates in use
    For cert added as SNI listener, it will be listed with both, default true and false
    :param listener_arn:
    :return: True/False
    
lemur/plugins/lemur_aws/elb.py