where the is_doc? method is defined?