[BUGFIX] check if is array to fix template changes/switches

__Tasks:__
- [ ] got feedback

__Informations:__

| Q             | A
| ------------- | ---
| Bug fix?      | fixes #576 
| New feature?  | no
| Tests pass?   | none
| Fixed tickets | none
| Doc           | none