You could use Guava's Strings.isNullOrEmpty instead here