Add method IsSet to check whether flag has been set by the user.