getNodes returns an array with numeric keys