       return null
 
   addPublicChildren: (scope, completions, prefix, onlyList) ->
-    unless scope of @projectObjList
+    scopeObj = @projectObjList[scope]
+    unless scopeObj?
       return completions
-    unless 'mem' of @projectObjList[scope]
-      return
-    children = @projectObjList[scope]['mem']
+    children = scopeObj['mem']
+    unless children?
+      return
     currVis = 1
-    if 'vis' of @projectObjList[scope]
-      currVis = parseInt(@projectObjList[scope]['vis'])
+    if 'vis' of scopeObj
+      currVis = parseInt(scopeObj['vis'])
     for child in children
       if prefix?
         unless child.startsWith(prefix)

      parentName = classObj['parent']
      resolvedScope = @findInScope(scope, parentName)
      if resolvedScope?
        @projectObjList[scope]['res_parent'] = resolvedScope+"::"+parentName
      else
        return
    # Load from parent class
    parentKey = @projectObjList[scope]['res_parent']
    if parentKey of @projectObjList
      @addChild(parentKey, scope)
      @resolveIherited(parentKey)
      #
      @projectObjList[scope]['in_mem'] = []
      if 'mem' of @projectObjList[scope]
        classChildren = @projectObjList[scope]['mem']
      else
        classChildren = []
      if 'mem' of @projectObjList[parentKey]
        for childKey in @projectObjList[parentKey]['mem']
          if classChildren.indexOf(childKey) == -1
            @projectObjList[scope]['in_mem'].push(parentKey+'::'+childKey)
      if 'in_mem' of @projectObjList[parentKey]
        for childKey in @projectObjList[parentKey]['in_mem']
          childName = childKey.split('::').pop()
          if classChildren.indexOf(childName) == -1
            @projectObjList[scope]['in_mem'].push(childKey)
    return

  buildCompletion: (suggestion, repName=null, stripArg=false) ->
    name = suggestion['name']

      @firstRun = false
    @localUpdate(editor, bufferPosition.row)
    unless @checkIndex()
      @notifyIndexPending('Go To Definition')
      return
    wordLower = word.toLowerCase()
    lineScopes = @getLineScopes(editor, bufferPosition)
