OC-38: Check if file exists before checking if writable, check can create new file if doesn't exist