def directive_exists(name, line):
    """
    Checks if directive exists in the line, but it is not
    commented out.

    :param str name: name of directive
    :param str line: line of file
    """
    return line.lstrip().startswith(name)