getValidChild method