I don’t think Dick’s dictum is quite right as it stands. If we stop believing in Gandalf but still see him on screen, he doesn’t go away. That doesn’t mean that Gandalf is real. The same goes for illusions and hallucinations: even if I believe that a distant mirage isn’t real, the mirage doesn’t go away.