Fix Sentry check, use class_exists and check.