1) This will never be run, since if `len(potential_parents) == 0`, then the `not potential_parents` will already have caught it
2) If it did run, it would blow up: can't reference an element in an empty list.

Was it supposed to be `== 1`?