Handle optional params in client API