You can use `SmrGalaxy::getGalaxyContaining($player->getGameID(), $sectorId) === false` to check if a sector exists, rather than relying on an exception being thrown (btw it should be `SmrSector::getSector($player->getGameID(), $sectorId);` here for the exception case)