I'd prefer to flip this logic around to make it `if size == 0`.  I think that reads cleaner.