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.<
response[0] is not defined, check if it is defined and then check for its property title.
response[0]
if(typeof response[0] !== 'undefined' && typeof response[0].title !== 'undefined'){ //Do something }