static public List <RegularUser> checkForAdmins(List <RegularUser> userData) { List <RegularUser> newData = new List <RegularUser>(); foreach (RegularUser u in userData) //checks for admins. { bool isAdmin = UserValidations.isAdmin(u.Username); if (!isAdmin) { newData.Add(u); } } return(newData); }