Book IA - check if api_result is defined