Yes, there is a lot of differences between C and ruby. Ruby is more closer to perl then C. In this case rule is simple. "false" in if is `false` and `nil`.