make checking named arguments not rely on .pairs

gets rid of a "use of Nil in numeric context" warning