function updateMasterList() { $masters = $this->matchMakingService->getLatestMasters($this->storage->serverLogin, $this->scriptName, $this->titleIdString, $this->lastMasterId); $this->gui->updateMasterList($masters); $this->lastMasterId = array_key_exists(0, $masters) ? $masters[0]['id'] : $this->lastMasterId; }