I just use

if(string.length == 0) {}

which covers both cases and is pretty intuitive too.

Reply via email to