How about this instead to get rid of the empty statement?

```
else if not (ignoreCurLine and onlyWhitespace and whitespaceRow is cursorRow)
  replace('')
```