Nope, I'm wrong. You're using List.isEmpty(), not String.isEmpty(). That's perfectly legit. Keep what you have!