Use the `in` operator to detect for `to_param` and `id` in objects