In places like this, you gotta miss Rails' `try`. Sure it has some code smell, but it solves these issues like a charm.