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.<
Check if you're response[0] actually exists, the error seems to suggest it doesn't.
response[0]