rest_proxy.php: added function_exists check