You can actually learn to be wise, and it can help you feel less lonely