Fix support for 0 as a path params

`first[key] || ''` changes `0` into `''` which is a problem when dealing with simple indexes.
Use a more idiomatic style
Merge pull request #27 from MathieuLoutre/patch-1

Fix support for 0 as a path params