Check out example codes for "vb.net check if datatable has rows". It will help you in understanding the concepts better.

Code Example 1

If dtDataTable IsNot Nothing AndAlso dtDataTable.Rows.Count > 0 Then
    'some code
    lbl_count.Text = "Found " & dtDataTable.Rows.Count.ToString & " results"
Else
    'some code
    lbl_count.Text = "Found 0 result"
End If

Learn ReactJs, React Native from akashmittal.com