added isset to all set properties so that properties are only updated if present in the set json string