Changed key_exists() to array_key_exists()
Merge branch 'github.com/dev'