The hasOption method already returns a boolean, so the ternary on this and the next line is unnecessary.