Or is it better to write this as `if hasattr(expr, '_eval_simplify'):`?