extend method isCollectionCountable