Pimcore\Model\Asset::hasSiblings PHP Method

hasSiblings() public method

Returns true if the asset has at least one sibling
public hasSiblings ( ) : boolean
return boolean
    public function hasSiblings()
    {
        if (is_bool($this->hasSiblings)) {
            if ($this->hasSiblings and empty($this->siblings) or !$this->hasSiblings and !empty($this->siblings)) {
                return $this->getDao()->hasSiblings();
            } else {
                return $this->hasSiblings;
            }
        }
        return $this->getDao()->hasSiblings();
    }