impĺementing isCollection()