 
   # TODO: move to physics mixin
   onTouch: =>
-    method.apply @, arguments for method in @onTouchMethods
+    method.apply @, arguments for method in @onTouchMethods when method?
 
 
   onTouchBegin: =>
-    method.apply @, arguments for method in @onTouchBeginMethods
+    method.apply @, arguments for method in @onTouchBeginMethods when method?
 
 
   onTouchEnd: =>
-    method.apply @, arguments for method in @onTouchEndMethods
+    method.apply @, arguments for method in @onTouchEndMethods when method?
 
 
   # I won't move no matter what! Don't even try it.


  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)


    # 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
