Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Is there a isset for array elements and object attributes?

I saw there's "isset" for checking variable. go a step further, how to check is an element in a array or does an attribute belong to a object?


I found the {% if is defined %} and the default filter works. I'm so careless :(