Fixed issue #4135.

should use `array_key_exists()`