adding support for ToBeNil() check