def METHOD_NAME(mail):
    """Query ldap to check if user exists."""
    res = _query_ldap(
        base='OU=e-groups,OU=Workgroups,DC=cern,DC=ch',
        query='mail={}'.format(mail),
        fields=['mail'],
    )
    return True if res else False