Factor out isCollection
DOM Observer