Don't try to parse an empty document
Consistency
Say what we're doing
Guard against null strings