Change upsert to return created flag in boolean

`Metadata#upsert()` should return upsert result which includes `created` property in boolean.