   # Create instance
   iter = syncState.instancesToCreate.entries()
   while pair = iter.next().value
-    if instance = pair[1].values().next().value
+    if sessionData.deviceData.attributes.has(pair[0]) and
+        instance = pair[1].values().next().value
       pair[1].delete(instance)
       return {
         type: 'AddObject'


  if not sessionData.syncState?
    return callback()

  inception = sessionData.declarations.length - 1


      else
        minInstances = maxInstances = declaration[3]

      parent = sessionData.deviceData.paths.add(path.slice(0, -1))

      if Array.isArray(path[path.length - 1])
        keys = {}
