if field is set, ruby check if it is a value code example Example: ruby check if exists apple = 1 defined?(apple) # "local-variable" defined?(bacon) # nil