checkInstance