Fixed collections type check