Looks like found should be defined here instead of outside the loop