def check_dict_key_not_none(dicti, key):
    """checks if a dict contains a certain key and if the key is True, else False"""
    if key in dicti:
        if dicti[key] == None:
            return False
        else:
            return True
    else:
        return False
