Extra safety checks, to prevent recursive deletion going far awry.