I'd rather do isinstance. It won't swallow bugs like this might, and it expressions that can be subtracted should be Expr anyway.