If err doesn't exist, then isn't it null? If so, this could be written as: `onReady(err);`