Shouldn't this be _self.checkConnection(result[i] etc