Handle case of one or multiple parents