Don't try to get first element of empty buffer