null check on data.Read()