Check collection type