Board Thread:Support Requests - Getting Technical/@comment-3279487-20161006142809

Hello again. I'm trying to get the content of a page with JavaScript. At the moment, I'm using this working code:

I want to check if the page does not exist before doing anything. How can I do that? I tried adding in or use   but with no success. 