It looks fine. Although instead of a return statement, you could use break to break out of the loop and then return.