     hal.operators.push '()'
     return hal
   if expression?.receiver?
-    hals = countExpressionHalstead expression.receiver
+    hals = [countExpressionHalstead expression.receiver]
     hals.push countExpressionHalstead expression.index if expression.index?
     hal = combineHalsteads hals
     hal.operators.push '[]'

    return hal
  return {
    operators: []
    operands: []
  }

calculateStatementComplexity = (statement, options) ->

    when "if"
      hals = [
        countExpressionHalstead statement.condition
        countStatementHalstead statement.block
      ]
      hals.push countStatementHalstead statement.elseBlock if statement.elseBlock?
      hal = combineHalsteads hals
      hal.operators.push 'if'
      hal.operators.push 'else' if statement.elseBlock?
