need to check the apmInfo for `undefined`