class ViewComponent::Preview

def exists?(preview)

Returns +true+ if the preview exists.
def exists?(preview)
  all.any? { |p| p.preview_name == preview }
end