PHP-1063: Refactor cursor logic to follow MongoCommandCursor

https://jira.mongodb.org/browse/PHP-1063
A database returned document will never have cursor->current as a bool, but as an array. This change is only because the return_value argument is now assigned later (in line 777).