I am having problem in loops and conditions. I am trying to check if link is available in results from google custom search API. but only get last result true. Dont know why