getChildNames() now throws an error if there is no parent