src/Webtrees/Mvc/View/ViewBag.php
public function set($key, $value, $override = true) {
        if(is_null($key)) return;
        if(!$override && array_key_exists($key, $this->data)) return;
        $this->data[$key] = $value;        
    }
public function set($key, $value, $override = true) {
        if(is_null($key)) return;
        if(!$override && array_key_exists($key, $this->data)) return;
        $this->data[$key] = $value;        
    }
public function set ( $ key , $ value , $ override = true ) { if ( is_null ( $ key ) ) return ; if ( ! $ override && array_key_exists ( $ key , $ this -> data ) ) return ; $ this -> data [ $ key ] = $ value ; }
Set the value for the specified key.
Can define whether to override an existing value;

@param string $key
@param mixed $value
@param bool $override
Set the value for the specified key . Can define whether to override an existing value ;