Made JSON result check optional.