Check out example codes for "can sqldatareader be null". It will help you in understanding the concepts better.

Code Example 1

if (myReader.HasRows) //The key Word is **.HasRows**
{
    ltlAdditional.Text = "Contains data";
}
else
{   
    ltlAdditional.Text = "Is null Or Empty";
}

Learn ReactJs, React Native from akashmittal.com