array_key_exists would do the trick.