You could try storing the arrays in (small) text files (perhaps sorted) and use diff/cmp exit code.
Alternative could be a function, that loops over the foundarr entries to check if any are not found ("break" on first instance that is not found yet).
But maybe you could share some details on the search performed and what elements need to be found, because I think it may just be
easier to list all expected elements (in array, file,...), loop over those in a for-loop and then if (not found); do additional_search_to_update_results; done
while (( $allOK == 0 )); do
for i in expectedarr; do
if (inSearchResults == 0)
searchMissingItem; # append to search results if found
You should add a check on exit value of searchMissingItem, to see if the search finds the missing item, else it could turn into an infinite while-loop.