add a method to check whether extracting a node's sequence is possible