Some more functions related to links between models, like testing for eq...

...uality and checking if a link is empty (not set)