renaming custom array_diff function to something more accurate, fixing bug with duplicating search term