on the first occasion he learned that everyone in the cave was all right and he subsequently rejoiced in his dream , freed of the nightmare that in his absence , someone had been hurt or even killed , something his presence could have somehow prevented .