Changed checkStoreClass to static method