I do this in PHP as i'm not sure how to make the condition for serialization context argument. Can you say me more ?