add Collection::isEmpty method