code: public boolean exists(Dn dn) {
          try {
              return connection.exists(dn);
          } catch (LdapException e) {
              throw new LdapDaoException(e);
          }
      }
docs: Returns true if dn exists, false otherwise.