Upsert document if putting to Id and resource not created yet
Fix bug when putting falsy values
fix indentation
0.7.0