Apply.opts - don't error on non-existing options

Is there already a built-in way to avoid throwing errors like this one when doing
holoviews_layout.apply.opts(...) - as in just don’t apply the option if it does not exist for some element in the container?

ValueError: Unexpected option 'legend_position' for Area type across all extensions. No similar options found.