Only check arguments with values.
Fix spec to throw proper error.
Change to proper error type.