Searching success!

Figured out that the search results were returning all array elements
after the match; isolated the returned values in another if statement