I like more getUserDN().isEmpty() instead of the additional method call.