Line 62 should return from the *method* if the number is valid. Your snipped won't return any number unless the number is valid, which doesn't appear to be the intent of the method.