def has_params(data, *args):
    """
    Validates required parameters against an object.

    :param data:
    :param args: required parameters
    :return:
    """
    if not data:
        return False
    for a in args:
        if not a in data:
            return False
        v = data[a]
        if not v or v.isspace():
            return False
    return True