Thanks to @jcarouth for pointing out that this actually checks against a hash, not an array