Reduce warnings by checking if LDAP attributes exist