         return controller
     }()
     
+    /// Returns whether the search controller is active or not
+    private var isSearchActive: Bool {
+        return searchController.isActive && searchController.searchBar.text != ""
+    }
+    
     // MARK: View Handeling
     
     override func viewDidLoad() {

        editAction.backgroundColor = UIColor.info
        
        
        let deleteAction = UITableViewRowAction(style: .destructive, title: "Delete", handler: { [weak self] _, path in
            self?.handleDelete(at: path)
        })
        
        deleteAction.backgroundColor = UIColor.warning
        
        return [editAction, deleteAction]
    }
    
    // MARK: Helper Methods

    }
    
    override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
        if section == 0 {
            return "Favorites"
        } else {
            let sem = semesters[section]
            return "\(sem.term) \(sem.year)"
        }
    }
    
    override func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
