Why not `elif not isinstance(v, ufl.expr.Expr)`?