Using Floki to select an attribute -OR- a different one

Is there a way to use Floki to pick one attribute or a second attribute if the first cannot be found? I’m trying to grab an image URL out of HTML. Some images have the URL under the “data-original” attribute, while others have it under the “src” attribute.

Is there a way I can say something similar to “data-original” | “src”?

> [my_img] <- html |> Floki.find("img") |> Floki.attribute("data-original")

Easiest thing to do is probably just use if

[my_img] =
if img = Floki.find(html, "src") != [] do
  img
else
  Floki.attribute(html, "data-original")
end