Stop using deprecated key_exists().