Minor fixed on CollectionView::isEmpty

Fixed an inconsistency for the isEmpty function of the CollectionView object. 
The data collection given to the function parameter was not used. 
With this patch, the collection used is the collection given in parameter.