Checks whether the specified option is valid.
This function assumes that the option argument must contain exactly one bit.