It should not be ``hasOption`` but ``getOption``. The input always have the option as it is part of the definition