Same result as my standalone test [gist](https://gist.github.com/cgmartin/9052704), it serialized to a string when written:
```
string(0) ""  // getItem
bool(true)    // $success
```
It's up to the user to cast to boolean. Is that the issue? Numbers (int, float) get serialized to strings as well, it seems.