def assert_keys_in_form_exist(form, keys):
    """
    Check all the keys exist in the form.
    :param form: object form
    :param keys: required keys
    :return: True if all the keys exist. Otherwise return false.
    """
    if form is None:
        return False

    if type(form) is not dict:
        return False

    for key in keys:
        if key not in form.keys():
            return False

        # value = form[key]
        # if value == None:
        #     return False

    return True