fix error conditions test, prototype for function_exists