It's a real nitpick, but doing the lookup on AuthSourceHidden is marginally more efficient as the SQL query will only match auth sources of that STI type - coupled with .any?, then you just get a COUNT() type query instead of returning the row:

    SELECT COUNT(*) FROM "auth_sources" WHERE "auth_sources"."type" IN ('AuthSourceHidden') AND "auth_sources"."id" = 1