Change emptied -> atEndOfStatement

Made the name of this variable more suited to its purpose.