Looks good but the formatting on the last lines (`if (found) ...`) doesn't match the rest.
Are whitespaces used there instead of tabs?