 			@updateContextHeight true
 			return
 
-		currentNumberOfCols = if DOMModel[0] isnt undefined then DOMModel[0].length else 0
+		currentNumberOfCols = if DOMModel[0]? then DOMModel[0].length else 0
 		row = 0
 
 		# Which breakpoint should we base this on

	###
	onEnterViewport: () =>
		return if hasBeenShown
		@showGrid()
		@addEventListeners()
		@onWindowResize() # in case we have resized before all this happened
		hasBeenShown = true

		@param {Boolean} reset If we are resetting the containers height
	###
	updateContextHeight: (reset) =>
		if reset is true or currentBreakpointKey is null
			@$context.height 'auto'
		else
			@$context.height numAvailable.rows * (@getCellHeight('1') + GRID_CELL_GAP)
