change is_function to function_exists