Re:PHP CommonMark
by alexbilbie on Thursday December 25, 2014 @05:08PM
(#8797331)
I guess because you're asking a question of the object - "is this empty?"
[ Parent
| on HN ]
It already implements count() and the corresponding interface so it's possible to write count($collection) as if you're writing $collection->count(). It's a valid question why this type of object needs two methods for checking the same property.