Add is_empty() method to PathLikeSelector, add tests for is_empty() and is_expandable().