The philosophical case for staying hopeful in dark times