bool FilterBySearch (Note note) { if (SearchText == null) return true; if (current_matches.Count == 0) return false; return note != null && current_matches.ContainsKey (note.Uri); }