Maybe `ldap == null`?  Right now, it will take the alternate branch when e.g. `{ ldap: 0 }`, i.e. any false-y value that's not undefined.