Note you can use the truthiness of allowedAttrValue instead.