isEmpty is not defined until Android 2.3