Please explain the final line here

Seems the solution on the hint has return within the if loop as well, I think I’m missing something: freeCodeCamp Challenge Guide: Where do I Belong