Allow empty arrays and nils.
Merge pull request #5 from pathable/defaults

Allow empty arrays and nils.