function hasGetterOrSetter (def)
{
    return (!!def.get && typeof def.get === 'function') || (!!def.set && typeof def.set === 'function');
}
Internal function to check if the object has a getter or setter.

@function hasGetterOrSetter
@private

@param {object} def - The object to check.

@return {boolean} True if it has a getter or setter, otherwise false.