Updated boolean for if in new and update