Use clear instead of empty as empty is a reserved word.

As mentioned on the mailing list, `empty` is a reserved word. We landed on `clear()` for Florin's proposal. As such it should work here as well.