check that collection exists