function hasProperty(obj, propName) {
        //JavaScript does not protect the property name hasOwnProperty
        //Object.prototype.hasOwnProperty.call is the recommended/safer test
        return Object.prototype.hasOwnProperty.call(obj, propName);
    }
Helper function to test an object has a property
@param {object} obj Object to test
@param {string} propName Name of property to find
@returns true if object has property `propName`