Why did you go for a static function ?  `$node->isTrashAllowed()` ?