introduce isElementCollection method