Maybe cast `$usePageLayout` to bool:

```php
$this->siteBasics['show-page-layout'] = (bool)$usePagelayout;
```