To overcome the situation

Maybe this is the actual psychology of humor? The ability to find a funny side in everything, to draw the strength and energy necessary to overcome the situation.