It seems to me the control flow would be more clear if useUnionRDD is renamed !overwriteExisting. What do you think?