More thorough check to see if the buffer contains anything.