Minor logic change to check if a param is required

It basically allow to use option that not require parameter (in the
first iteration I did not allow it)