Do something when an array has a key