Perhaps use Strings.isNullOrEmpty() here since it's more robust.