Besides, in this loop, you can't have two match for `p_calls[j].index == i+1`, or it's a duplicated call object.  So you can certainly just break the loop here.  With this, you can clean-up the two for-loop and have cleaner code that doesn't even need a `validConnection` variable.