An example validation function that checks both parents are defined:
This function can be passed to pedigreejs as the 'validate' configuration option: