Accept collection name or collection object