hasChildren not defined in Symfony 2.3
Merge pull request #8 from maior-valentin/master

[HOTFIX] hasChildren not defined in Symfony 2.3