Is this the ideal way to do it?
Won't a condition be more elegant?
Has this pattern been used in gaia elsewhere?