Does this work as expected?  I thought I use string check specifically because toBool() requires variant of type Bool.