```
query = "SELECT MAX([Date]) FROM [Events]";
DataTable dt = execute(query);
DateTime date;

if (dt!= null && dt.Rows.Count != 0)
{
    date = (DateTime) dt.Rows[0][0];
}
else
{
    date = DateTime.Now;
}

```

now what is my question, when the table Events is empty, it returns me some invalid value, which is not even null...how can i write a normal validation for it?