added function exists test for apache_setenv method