Thanks @zacc 
I've overcomplicated this line.
It should be just `return value == 'true'`