I have a code which pass variable into a method if this variable exists in property file. 

```
if all(hasattr(globals().get('properties'), var) for var in ['NAME','VALUE']):
    return reader.get_smth(name=properties.NAME, value=properties.VALUE)
else:
    return reader.get_smth()

```

it's obvious that method `get_smth()` has default values for every passed parameter. 

So how can i pass only existing parameters (`reader.get_smth(name=properties.NAME)` or `reader.get_smth(value=properties.VALUE)`) avoiding large number of `elif`'s

P.S. Parameters which have to be passed **more that 2**.