drop the checkOptionalArgument method, it was buggy.
Merge pull request #9 from sandain/master

drop the checkOptionalArgument method, it was buggy.