changed to use TextUtils.isEmpty

for Java 1.5 (Android 2.x) compat