Not sure, but there might be other places here that you need to add this additional check. This means, though, that you don't want to try to maintain the link from the base PTable to all it's child PTables (which probably makes sense, as there could be a huge number)