Opts10

I'd think ```if hasattr(f, 'rel') and f.rel and f.has_class_relation:``` would be preferred (or is it more complicated?).