private static bool isMonitorProfile(string testProfile) { string[] ProfileList = BFS.DisplayFusion.GetMonitorProfiles(); return Array.Exists(ProfileList, element => element == testProfile); }