Trip planner trackwork

Hi,

I’m using trip planner API to get trip information between two stations. What’s the way to detect trackwork in the response json?
I can see transportation->product->name is “Temporary buses” when there is a trackwork but not sure if that’s the best way. I was wondering if there is flag or something I can rely on better than a text.

Thanks