if ( length $string ) { [download]
I believe that length is more efficient than using a string comparison.
In reply to Re: Checking string emptiness by jwkrahn in thread Checking string emptiness by dave93