Notes on empty():
"PHP 4 As of PHP 4, The string value "0" is considered empty. "
If you're just looking for any content whatsoever that isn't whitespace you could use
if (strlen(trim($yourValue)))
{
echo 'Rah!';
}
else
{
echo 'bad boy, get to bed';
}
and of course at the end of the day there's always regex for those moments when you have to get intimate with your data.