Check if the child index is available before looking for it, avoiding a potencial out of bounds exception
Merge pull request #5 from dcordero/master

Fix potencial out of bounds exception