fix #138 - hasOption is always true even if the parameter is not specified. check for an actual value