Add "if_exists" flag to update_yaml method as well