Checks whether optname is a valid option name for a pause setting.
optname
the option name to check
true, if optname is valid