You can just get away with StringUtils.isEmpty() for this condition.