 
           JAccount.one {"profile.nickname": toBeDeletedUsername}, (err, account)=>
             return callback err  if err?
-            return callback createKodingError "Account not found #{toBeDeletedUsername}"  unless account
+
+            unless account
+              return callback createKodingError \
+                "Account not found #{toBeDeletedUsername}"
 
             # update the account to be deleted with empty data
             account.update $set: accountValues, (err)=>

      email = "#{username}@koding.com"
      @one { username: toBeDeletedUsername }, (err, user) =>
        return callback err  if err?
        return callback createKodingError "User not found #{toBeDeletedUsername}"  unless user

        oldEmail = user.email


  guests    = {}

  @unregister = secure (client, toBeDeletedUsername, callback) ->

    {delegate} = client.connection
    {nickname} = delegate.profile

    console.log "#{nickname} requested to delete: #{toBeDeletedUsername}"

    # deleter should be registered one
    if delegate.type is 'unregistered'
