Details added on checking presence of related objects.