I have been using this utility below to detect if a member method has been defined in a class, which works in most of the cases in my framework.
template <