     
     @IBAction func search(sender: NSSearchField) {
         // disables scrolling during search
-        enableScrolling = (sender.stringValue == "")
+        enableScrolling = sender.stringValue.isEmpty
         
         tableView.reloadData()
     }

    }
    
    func tableView(tableView: NSTableView, viewForTableColumn tableColumn: NSTableColumn?, row: Int) -> NSView? {
        let cell = tableView.makeViewWithIdentifier(Storyboard.cellIdentifier, owner: tableView) as! TranscriptLineTableCellView
        
        cell.foregroundColor = textColor

    }
    
    func doubleClickedLine(sender: AnyObject?) {
        guard tableView.clickedRow < filteredLines.count else { return }
        
        let line = filteredLines[tableView.clickedRow]
        jumpToTimeCallback(time: line.timecode)
    }
