New functions which check if there is already exist relationships.