Verify parameters exist before calling a controller action