open_in_new
content_copy
if (typeof variable !== 'undefined') { // the variable is defined }