Add extra error check to detect_hyper