This won't work. `defined?('Abcd'.constantize) # => "method"` because .constantize raises exception which is defined.