I think this might always be `0` if `N` isn't provided because `nil.to_i` is `0` and `0 || 1` is `0`.  Did you try it?