Fixed typo in len(available_apis) check