Added detecting if the first parameter is a collection so that we don't wrap the list if we do not have to.