Again use KrollDict directly. Then you do not need an invalid argument check