private function getVisibleCondition($property)
    {
        $condition = $property->getVisibleCondition();
        if ($condition instanceof PropertyConditionChain) {
            return $condition;
        }

        $conditionChain = new PropertyConditionChain();
        $property->setVisibleCondition($conditionChain);

        if ($condition) {
            $conditionChain->addCondition($condition);
        }

        return $conditionChain;
    }