ArgumentOutOfRangeException
When you do
cityObjects[i] at the start of the foreach loop, cityObjects likely doesn't have anything at element [1], the initial value of i