Function TextRange.empty

returns true if range is empty

bool empty() @property const;