def _has_levels(section):
    """ Check if a given configuration section has levels or not. """
    # Bit of a hack...
    num_dicts = [x for x in section.values() if type(x) == dict]
    return len(num_dicts) == len(section)