Prevent a PHP5.4+ exception when $data is false

When $data is false, PHP 5.4+ throw an Exception saying 'Creating default object from empty value' at line 48.