Check for Models with no child

A model with a relation but its foriegn key field set as NULL will generate an error..