copypasta found.php + insert_found() function in helpers.php