Fixed array_key_exists error