LdapAgent.search doesn't return a hash so empty? doesn't work