I tried to get code DRY, but this has bug...

- In L18 inFoobar is fixed to default value false and not switched
- Maybe bool value should have a wrapper struct.