Added a check util method to check if possible child is child of given parent