Hi,

this PR polishes cases where isEmpty() could be used in favor of doing size()/length() == 0 checks.

Cheers, Christoph