protected function hasInputOption($option, $input)
    {
        return $input->hasOption($option) && null !== $input->getOption($option);
    }
protected function hasInputOption($option, $input)
    {
        return $input->hasOption($option) && null !== $input->getOption($option);
    }
protected function hasInputOption ( $ option , $ input ) { return $ input -> hasOption ( $ option ) && null !== $ input -> getOption ( $ option ) ; }
Check if a given input option exists and it isn't null.

@param string $option The name of the input option to check
@param \Symfony\Component\Console\Input\InputInterface $input object

@return boolean
Check if a given input option exists and it isn t null .