Use array_key_exists instead of 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 )
```

More information here: http://php.net/manual/en/function.key-exists.php