def key_on_dict(key, mydict):
    """
    Check if key on dict, is old because a dict has .get method
    """
    if key in mydict:
        if mydict[key]:
            return True
        else:
            return False
    else:
        return False
