Checking existence of methods and properties on this_ptr