Fix isEmpty function.