more efficient parsing of optional parameters (avoid unneeded throws)
Merge pull request #226 from SmallGiantGames/master

more efficient parsing of optional parameters (avoid unneeded throws)