getChild() helper function

Made new PR as I'm just using the web editor and cba pulling and pushing a rebase just for 1 function :P