I wonder why you need this?  Because if you do a `foreach` on `$queryResult`, it'll work.  Is there a specific reason for that? (I just want to push homogeneous code and I didn't do that in the new code I propose).