checks for current document