Added simple if switch to check if offlineClass even exists.