[ruby] Checking if a variable is not nil and not zero in ruby