Remove redundant isinstance condition on expr.func
Remove redundant isinstance condition on expr.func

isinstance(expr.func, UndefinedFunction) is enough to detect we have
an undefined function

kaushik94/sympy,kaushik94/sympy,kaushik94/sympy