This function checks if the node has children.
Zwraca TRUE w przypadku sukcesu, FALSE w przypadku porażki.