ensure existance of detection value before 0 check