Tweak 'checkDescendent' function

- Tweak 'checkDescendent' function.