protected function isReferencing(\stdClass $statement) { return isset($statement->object->objectType) && $statement->object->objectType === 'StatementRef'; }