Here `results` will always be an array so all these extra checks are pointless. You could just return `cb(results[0])` right away.