Cleaned up check() and write() a bit.

And yes, I want to to say if exist or not exist. That is part of my plan
for PatchIt!