made sure if enabled was checked, that the value passed is either true or false