Assuming "not exists" means that the args[2] would return a Index out of range exception, check the length of the args array:
if (args.Length == 3)
{
//Do stuff since args[2] exists
}
else
{
//Do something else
}
If you mean args[2] is null, then just check that
if (args[2] != null)
{
//Do stuff since args[2] exists
}
else
{
//Do something else
}