In function hasFather, check also if the father is undefined