Made use of Strings.isNullOrEmpty()