Added array_key_exists check

Added array_key_exists check to check for misconfigured environments like Google App Engine