Why not use
Code:
if (Valhalla isin #) { ... }
?