Referencing function with if statement not working

I am trying to reference a function in an if statement and it’s not doing anything. The reference is here.



private function newNumber (qTotal:Number, curNum:Number):Number {
            var newNum:Number = Math.floor(Math.random()*qTotal);
            
            for (var j:Number=0; j<curNum; j++) {
                if (randomizedOrder[j] == newNum) {
                    return newNumber(qTotal, curNum);
                }
            }
            return newNum;
            
            if (newNum > 35)
            {
                stopTiming();
            }
        }


and the stopTiming function is in a different package and looks like this.


internal function stopTiming():void {
            timer.stop();
        }

is it b/c I am trying to reference an internal function?