 
     # Call all mixin setUpMethods before applying
     # the TILED properties
-    method.apply @ for method in @setUpMethods
+    method.apply @ for method in @setUpMethods when method?
 
     # Copy all properties from the TILED object
     @[prop] = content for prop, content of object.properties


  load: =>
    # call all load methods
    method.apply(@) for method in @loadMethods


  kill: =>
    method.apply @ for method in @unloadMethods

    # TODO: go to physics mixin
    @level.physicsManager.world.DestroyBody(@physBody)

    @position.y = @physBody.GetPosition().y if @physBody.GetPosition().y?

    # call all update methods
    method.apply @ for method in @updateMethods when method?


  # TODO: move input mixin
