Always check arguments length before pulling from it
Merge pull request #177 from ljharb/fix_argument_checking

Always check arguments length before pulling from it