Checking if all parameters are provided