Why try to obfuscate it? Just use if (length $string) { as suggested by jwkrahn?
In reply to Re^2: Checking string emptiness by GrandFather in thread Checking string emptiness by dave93