public bool RemovePlayer(string name) { bool isExists = Roster.Any(p => p.Name == name); if (isExists) { var playerToRemove = Roster.FirstOrDefault(p => p.Name == name); Roster.Remove(playerToRemove); } return(isExists); }