what's the "'equivWebapps' && " condition?
if ('equivWebapps')
will always return true, no? maybe it should be
if (apiInfo.equivWebapps && apiInfo.equivWebapps.length) {