Searching arrays-added T or F statement to find a needle in a haystack