We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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?



1.1k
Accepted
answer

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