Added shortcut for case where the buffer contains no events