Use `new.respond?(:method)` instead of checking from instance methods, which is slower.

Use `new.respond?(:method)` instead of checking from instance methods, which is slower.

perf: https://gist.github.com/vipulnsward/8d30ace92d530e4244c2