Document functions only binded if the document exists.