Question: I am fairly new to the whole UI5 and Fiori world and maybe this is a simple problem.

So far I have created a fiori-elements list report using the SAP Web IDE.

[Example Elements Application](https://sapui5.hana.ondemand.com/test-resources/sap/ui/demoapps/demokit/rta/fiori-elements/test/index.html#masterDetail-display)

In my smart filter bar are shown a few MultiInput fields to filter the data (see: Category field in Example).

For the Category Field I can choose contains and set a value and after I click on OK a Token is placed inside the field and I can Filter the data.

Now I want to prefill this field, so the user does not have to enter it every time.

I tried to add a token programatically by extending the controller and add a new token in `onBeforeRendering` 

```
onBeforeRendering: function() {`
    var multiInput = sap.ui.getCore().byId("...");
    multiInput.addToken(new sap.m.Token({text: "myDefaultFilterValue"}));
    // tried text: "*myDefaultFilterValue*" (contains)
}

```

As I would expect the token is visible, but if I click on "Go" the application behaves as if no filter is set. 

Do I have to call some update mechanism or somehow use local annotations?

Answer: 
I would add an Elvis operator which will check for the existence of the parent variable first. Like this:

```
<tr *ngFor="let something of adunit?.unit_price">
<td>{{something.updated_date | date : 'medium' }}</td>
<td>{{ something.value }}</td>

```
You don't need to worry about iteration, as Angular will take care of it for you. If array is empty, it won't iterate.