Why don't you use ``!empty($opts['keeptxt'])`` here like for ``$opts['depth']``?