red-brick: Check if there is data while handling async read/write calls