tweaking so that ->rowCount is only called when collection is first loaded, not on every loop.