If the expected params aren't there, you'll get a server error in the below code and the user will see a 500 error.  That's fine -- in fact, it's expected and good.  No reason to be overly cautious here.