@andrerom Why should there be an `instanceof` check ? `$this->legacyLayout` is `string|null`