fixed function_exists call