Performance: minor performance/correctness improvement to _getterChild