bug #2272 Fix unconsistent behavior with "get"  and "is" (wolfx)
bug #2272 Fix unconsistent behavior with "get"  and "is" (wolfx)

This PR was squashed before being merged into the 1.x branch (closes #2272).

Discussion
----------

Fix unconsistent behavior with "get"  and "is"

Commits
-------

8fb35d5 Fix unconsistent behavior with "get"  and "is"

gamernetwork/Twig,twigphp/Twig,gencer/Twig,twigphp/Twig,nicolas-grekas/Twig,nicolas-grekas/Twig,nicolas-grekas/Twig,gencer/Twig,nicolas-grekas/Twig,gamernetwork/Twig,nicolas-grekas/Twig,gamernetwork/Twig,twigphp/Twig