Fixes the check if there is any data available or not.