+# Local deps
+Utils = require '../utils/utils'
+
+module.exports.first = first = (array, count) ->
+  if Utils.isUndefined(count) then array[0] else array.slice 0, count
+
 module.exports.register = (Handlebars, options) ->
 
-  # Local deps
-  Utils = require '../utils/utils'
-
-
   # First: Returns the first item in a collection.
-  Handlebars.registerHelper 'first', (array, count) ->
-      if Utils.isUndefined(count) then array[0] else array.slice 0, count
-
+  Handlebars.registerHelper 'first', first
 
   # With first: Use the first item in a collection inside a block.
   Handlebars.registerHelper 'withFirst', (array, count, options) ->




  # 
  Handlebars.registerHelper 'eachIndex', (array, options) ->
      result = ''
      for value, index in array



  ###
  Similar to #each helper, but treats array-like objects as arrays
  (i.e. objects with a `.length` property which is a number)
  rather than objects. This lets us iterate over our Collection's.
  ###
