Rename method `check_suffix` -> `has_suffix`
Add method `has_segment`