hasData method Null safety

bool hasData()

Implementation

bool hasData() {
  return _data != null;
}