replace String.isEmpty() usage with length() != 0

.isEmpty() which wasn't introduced until ~android-10