Account for nil value in array

Apparently someone has a nil value in an inherit groups list?