Added error-checking for listAirports