added isCollection property for is collection check