Changed key_exists() to array_key_exists()

The method (or alias)
```php
bool key_exists ( mixed $key , array $array )
``` 
is deprecated and should be replaced by 
```php
bool array_key_exists ( mixed $key , array $array )
```