Fixes Warning: Creating default object from empty value in PHP 5.4