Change array_key_exists to isset where applicable.