 
   load: =>
     # call all load methods
-    method.apply(@) for method in @loadMethods
+    method.apply @ for method in @loadMethods when method?
 
 
   kill: =>
-    method.apply @ for method in @unloadMethods
+    method.apply @ for method in @unloadMethods when method?
 
     # 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


  # TODO: move input mixin


    # Call all mixin setUpMethods before applying
    # the TILED properties
    method.apply @ for method in @setUpMethods when method?

    # Copy all properties from the TILED object
    @[prop] = content for prop, content of object.properties
