This is not necessary, and esc_html() would be improper here.  It's already checking if a method exists within the current class.  Hence, this code will not be executed unsafely.