For the record. `delete 0` is actually valid and does not do anything, so the if can be dropped.

http://msdn.microsoft.com/en-us/library/h6227113.aspx

(Could not find anything better than MS documentation, but I'm positive it's actually part of the standard).