Yes, it seems hasOption checks if the Definition of the command has that Option.
```
public function hasOption($name)
    {
        return $this->definition->hasOption($name);
    }
```
So, in this case, the definition has all the possible options and it always throws true if we do a $input->hasOption('no-sandbox')