     result = null
     lowerName = name.toLowerCase()
     for k of (@data.users or { })
-      userName = @data.users[k]['name']
-      if userName? and userName.toString().toLowerCase() is lowerName
+      userName = @data.users[k].name
+      if userName and userName.toString().toLowerCase() is lowerName
         result = @data.users[k]
     Q(result)
 

  # Returns promise an Array of User instances matching the fuzzy name.
  usersForRawFuzzyName: (fuzzyName) ->
    lowerFuzzyName = fuzzyName.toLowerCase()
    Q(user) for key, user of (@data.users or {}) when (
      user.name.toLowerCase().lastIndexOf(lowerFuzzyName, 0) is 0
    )

  # Public: If fuzzyName is an exact match for a user, returns an array with
  # just that user. Otherwise, returns an array of all users for which

  #
  # Returns promise an Array of User instances matching the fuzzy name.
  usersForFuzzyName: (fuzzyName) ->
    @usersForRawFuzzyName(fuzzyName).then (matchedUsers) ->
      lowerFuzzyName = fuzzyName.toLowerCase()
      for user in matchedUsers
        return Q([user]) if user.name?.toLowerCase() is lowerFuzzyName

      Q(matchedUsers)

  # Public: Return a brain segment bound to the given key-prefix.
  #
