Add an `if (self.dataSize>0)` condition