Added a statement to check if an API is present in configs