This check should come after the parameter variables are assigned below.