Checking for the initial checked state, and updating the class accordingly.