Changed the "isMiss" function to "isValid".

This was based off of Paul's suggestion in the mailing list, and tries
to make the function call more intuitive.
Changed the "flush" function to "empty"

This change was made to provide clarity, as some libraries use "flush"
to mean "save changes" which is pretty much the opposite of what's
happening here.