def verify_response(msg):
    """
    Verifies that the message is not None,
    'payload' exists and 'payload' is not None.
    :param msg:
    :return:
    """
    assert msg is not None
    assert 'payload' in msg
    assert msg['payload'] is not None
    assert msg['payload']['is_error'] is False, msg['payload']['error_message']
