Changed the PurpleCheckBox class to detect if the element whether is checked or not.