Input fix

Checks if the api is "".