def assess_gene_knockout_viability(model, gene_name):
    """Assesses viability of model when `gene_name` is knocked out.
    Returns True if viable, False if lethal."""
    with model:
        model.genes.query(gene_name).pop().knock_out()
        if model.optimize().objective_value == 0:
            return False
        return True