using stringutils.isEmpty instead of null and empty check