 
   phone_answered: ->
     l.info("phone answered")
-    return if @already_setup ?
+    return if @already_setup
       @already_setup = true
       setupMessage = (parentMessage) =>
         @iframePhone.addListener parentMessage, (data) =>


    @iframePhoneRpc = new iframePhone.IframePhoneRpcEndpoint
      phone: @iframePhone
      namespace: 'lara-logging'  

  constructor: ($iframe) ->
    @restart($iframe)

  formatMsg: (msg) ->
    message = ""
    try
      if typeof msg isnt "string"
        message = JSON.stringify(msg, null, "  ")
      else
        message = msg
