import toml


def get_toml_from_file(filename):
    """Returns the TOML structure for the given filename."""
    with open(filename, 'r') as f:
        parsed_toml = toml.load(f)

        if len(parsed_toml) != 0:
            return parsed_toml

    return None