can you make that a protected method in the BaseCase? i think it would make sense in most places where we test properties...

btw, instead of $node->getProperty()->getValue you can also do $node->getPropertyValue()