fix php error, arg to function_exists() should be a string