Fix for PHP 5.3 warning on empty user object

Resolves issue #2