     actors[type] = actor
 
 withAdapter = (type, adapter) ->
-  if not type then throw new Error "Adapter's type undefined"
-  if not adapter then throw new Error "Adapter undefined"
+  throw new Error "Adapter's type undefined" if not type
+  throw new Error "Adapter undefined" if not adapter
   if adapters[type]
     logger.warn "Adapter '#{type}' already defined"
   else



withActor = (type, actor) ->
  if not type then throw new Error "Actor's type undefined"
  if not actor then throw new Error "Actor undefined"
  if actors[type]
    logger.warn "Actor '#{type}' already defined"
  else

newActor = (type, properties) ->
  # Controls and warning about builtinAdapters override
  throw new Error "Actor's type undefined" if not type
  if not actors[type]
    actors[type] = require type
  else if typeof actors[type] is "string" 
    actors[type] = require actors[type]
