D.Trail: export isLineEmpty and isTrailEmpty