Check to ensure that params are past serve object

So to stop the serve function from running check that we have the required params set and they are not left empty