return noop if document not defined
make