Check for existing file/path before unlink something.

This should prevent an Exception that occurs sometimes.