I have set a default variable in my view (Twig template). But when I try to override it inside controller it is not happening. This is my view,

```
<div class="content-wrapper">
    {% if has_header|default(true) == true %}
         <!-- Header code -->
    {% endif %}
</div>

```

This is my controller,

```
return $this->render('index.html.twig', [
    'has_header' => false
]);

```

But unfortunately even I added the has **added 'has\_header' to false** it still runs header code. It would be great if someone can help.