using System;
public class Program
{
public static void Main()
int res = -1;
string[] array = { "cat", "bird" };
bool a = Array.Exists(array, element => element == "dog");
res = (a == true) ? 1 : 0 ;
Console.WriteLine(res); //true
}