public function checkCompoundPartCondition(ComponentInterface $component, $id = null) { return $component instanceof PartInterface && ($id ? $component->getId() === $id : true); }