These should be checking for the string true, not the boolean

The checks would not match before this change, since we were checking for a boolean value on a string.