Wouldn't just `(value == 'true')` work?