Your solution was so simple I didn't even think to go there... That would be a much cleaner solution. Considering that store_result should either return an object or false and never a bool(true).

Should I close this pull request and create a new one or assume it'l be taken care of?

Thanks!