String.isEmpty() calls to be compatible with Android versions < 9