In fact, the `is_nonlinear` flag used above could be stored as a boolean, rather than 0 or 1, then you'd just need to do `matching_hints['is_linear'] = is_nonlinear`