I believe this check will also be performed in the `createNewFile` call below?