Conditional check if file already exists