   ###
   getRandomSnippet: (callback) ->
 
-    return  unless @snippets and @isEnabled()
+    return  unless @snippets? and @isEnabled()
 
     ranges = null
     sum    = 0


    @snippets      = null
    @shownSnippets = {}

    $.ajax
      url      : @buildUrl 'config.json'

  ###
  getSnippet: (name, callback) ->

    return  unless @snippets?[name]

    { type, file } = @snippets[name]

