Improve helper#is_folded()