refactored require docworks defaults condition checking.