The condition is same in both if and else. 

Also, 
```
if @get('parentView.parentView.displayAsList') is "true"
```

is same as 
```
if @get('parentView.parentView.displayAsList')
```

Do not compare boolean with a string
"false" is true.