rem: if (index < 0 || index >= bag->count) { return NULL; }
add: wassertrv(index >= 0 && index < bag->count, NULL);
context: WMGetFromBag(WMBag *bag, int index){    if (index < 0 || index >= bag->count) {	return NULL;    }    return bag->items[index];}