In versed the boolean value in checkClass so that newClass.js can display the correct message