check empty situation for docs