diff --git a/includes/Classifai/Features/Feature.php b/includes/Classifai/Features/Feature.php index 16a305493..1e69ba022 100644 --- a/includes/Classifai/Features/Feature.php +++ b/includes/Classifai/Features/Feature.php @@ -393,7 +393,7 @@ public function add_provider_fields() { */ protected function merge_settings( array $settings = [], array $defaults = [] ): array { foreach ( $defaults as $key => $value ) { - if ( ! isset( $settings[ $key ] ) ) { + if ( ! array_key_exists( $key, $settings ) ) { $settings[ $key ] = $defaults[ $key ]; } elseif ( is_array( $value ) ) { if ( is_array( $settings[ $key ] ) ) {