Optimism is a strategy for making a better future. Because unless you believe that the future can be better, you are unlikely to step up and take responsibility for making it so.
Concerning the gods, I cannot know either that they exist or that they do not exist, nor what form they might have, for there is much to prevent one's knowing: the obscurity of the subject and the shortness of man's life.