I suggest using driver's own methods for checkbox manipulations:

```php
if((bool)$value) {
    $this->check($xpath);
} else {
    $this->uncheck($xpath);
}
```