Actually, it's a problem with `nil`, not `false`: `defined?(DateTime) && DateTime === object` evaluates to `nil` when `DateTime` is not defined.