if(DataReader.HasRows) { //do whatever }