When using empty(), I get this error: 

PHP Fatal error:  Can't use function return value in write context in /Users/brett/Sites/wpec.dev/wp-content/plugins/wp-e-commerce/wpsc-admin/includes/purchase-logs-page/item-details.php on line 24

Those functions reliably return a string. What do you suggest?