Isn't Params have a required field? Please use it and remove those lines.