Perhaps for clarity `isinstance(integrand, (sympy.log, sympy.asin, sympy.acos, sympy.atan))` would be best.