correctly using Object.const_defined?