Sim
Well-known member
It would be handy if we had an easy (or at least easier) way of testing for an empty collection in
I know we could do
XF\Mvc\Entity\ArrayCollection.I know we could do
if (count($collection) == 0) ... but I think it would be cleaner and more consistent if we could do if ($collection->empty()) (given that we can't do if (empty($collection)) ... unless that could be implemented somehow instead which would be really cool?)
Last edited:
Upvote
6