Fix bug in Utility childHasParent and parentHasChild functions