checking if the buffer exists (#256).