/* * Simple isset method for this does not exist in javascript */ var isset = function(obj) { return typeof obj !== 'undefined' && obj !== null; };