yep need to check whether 'ort' is in attributes but is value is None or
if 'ort' is not in attributes and therefore this would make sense.

This works anyway at least..