Async boolean logic for Node.js / Javascript.