logoalt Hacker News

IshKebabyesterday at 2:40 PM0 repliesview on HN

No, truthiness (implicit bool coercion) is another thing you should avoid. This will do weird things if data is a string or a list or whatever.