incorporating oturpe's stricter async check to prevent a false positive when the setTimeout is absent