Use the double negation syntax to check for truthiness of values. All values correspond to a boolean, irrespective of their type.
irb(main):001:0> !!1234
=> true
irb(main):002:0> !!"Hello, world!"
(irb):2: warning: string literal in condition
=> true
irb(main):003:0> !...