hasChildren not defined in Symfony 2.3