Replacing deprecated key_exists with array_key_exists.
Fixing anonymous survey see BT#6829