function apiFileExists (ipfsd) {
  return fs.pathExistsSync(getApiFilePath(ipfsd))
}
Checks if the repository api file exists.

@param {import('ipfsd-ctl').Controller} ipfsd
@returns {boolean} true if config file exists