Implement the Any<TSource>(IEnumerable<TSource>, Func<TSource,Boolean>) function https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.any?view=netcore-3.1#System_Linq_Enumerable_Any__1_System_Collections_Generic_IEnumerable___0__System_Func___0_System_Boolean__