I\'m checking if(response[0].title !== undefined), but I get the error:
if(response[0].title !== undefined)
Uncaught TypeError: Cannot read property \'title\' of undefined.<
You must first check whether response[0] is undefined, and only if it's not, check for the rest. That means that in your case, response[0] is undefined.
response[0]