Can't break early here. Wrap the next loop in a null check instead.