Renamed function getFirstChild to getChild