you could inject elegantly the assignments into the if expressions

```
if ($method = $input->getOption('method')) {
```

a la @fabpot