Wouldn't it better as `Integer(id) rescue :name`