make checking named arguments not rely on .pairs

gets rid of a "use of Nil in numeric context" warning
Merge pull request #3 from timo/fix_nil_warning

make checking named arguments not rely on .pairs