added empty() to Peekable

to fix https://github.com/mozilla/rust/issues/11218