I'm nitpicking but maybe you could have created a ```proxyChainLength``` property (```= proxyChain.length```) as the length is use three times...