checks if api exists