can you switch the order of the if -else clauses.. I dont really like contrapositive ( if !overwrite) if clauses :)