Utility functions to identify notes which are not properly linked or are missing.