       bucket = cube[bucketIndex]
       if bucket? and bucket != @LOADING_PLACEHOLDER
         return bucket
-      else if createIfNull
+      else if createIfUndefined
         return cube[bucketIndex] = new Uint8Array(@BUCKET_LENGTH)
 
     return null

    return null


  getBucketAndVoxelIndex : (voxel, zoomStep ) ->

    address     = @positionToZoomedAddress( voxel, zoomStep )
    voxelOffset = @getVoxelOffset( voxel )

    return {
      bucket : @getBucketDataByZoomedAddress(address, true)
      voxelIndex : @BYTE_OFFSET * @getVoxelIndexByVoxelOffset(voxelOffset) }



    z * (1 << @BUCKET_SIZE_P * 2)


  getBucketDataByZoomedAddress : (address, createIfUndefined = false) ->

    if address[3] >= @ZOOM_STEP_COUNT
      return null
