def METHOD_NAME(name: str, value: Optional[str] = None):
    if value:
        warnings.warn(
            'passing second argument is deprecated; use have.js_property(foo).value(bar) instead',
            DeprecationWarning,
        )
        return match.element_has_js_property(name).value(value)
    return match.element_has_js_property(name)