I noticed while investigating a separate issue that we're testing the truthiness of the incoming string rather than casting to a boolean. This fixes that.