Added array_key_exists check

Added array_key_exists check to check for misconfigured environments like Google App Engine
Merge pull request #225 from Label305-Forks/master

Added array_key_exists() check for get_defined_constants()