refactor: move result check to higher level
refactor: move result check to higher level

ericblade/quaggaJS,serratus/quaggaJS,serratus/quaggaJS,ericblade/quaggaJS,serratus/quaggaJS,JauernigIT/quaggaJS,ericblade/quaggaJS,JauernigIT/quaggaJS,JauernigIT/quaggaJS,ericblade/quaggaJS,serratus/quaggaJS