Checks if an item with a certain path is selected.
A tree path is a string of numbers and colons, e.g.
0:1:0 which would point to the first child
of the second child of the first item in a tree.
As we won't have trees here, a simple