proper check before monkey patch