def hasRenderer(self):
        return (self.getRenderer() != None)
tells you whether or not a Renderer has been set previously
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/graphical.py/GraphicalEnvironment.hasRenderer