I would personally use a totally different method, especially if the number of conditions is going to grow. I would make a JSON array like this:
[
{
"value": "504",
"email": "paul@paul.com"
},
{
"value": "525",
"email": "someone@somewhere.net"
},
{
"value": "513",
"email": "jim@enterprise.com"
}
]
Filter that array based on the value, and the take the email address. It's just cleaner and more scalable.
Do you get where I am coming from?