Use Object#try.