added check for no result passed to check_thresholds()