Check if the `id` is (requested)valid during the (de)serialization process