Added check for whether value was false to eliminate two false values making checkboxes set to true