public function exists($conditions)
    {
        if ($this->_conditions) {
            $conditions = $this
                ->find('all', ['conditions' => $conditions])
                ->clause('where');
        }

        return $this->getTarget()->exists($conditions);
    }
public function exists($conditions)
    {
        if ($this->_conditions) {
            $conditions = $this
                ->find('all', ['conditions' => $conditions])
                ->clause('where');
        }

        return $this->getTarget()->exists($conditions);
    }
public function exists ( $ conditions ) { if ( $ this -> _conditions ) { $ conditions = $ this -> find ( 'all' , [ 'conditions' => $ conditions ] ) -> clause ( 'where' ) ; } return $ this -> getTarget ( ) -> exists ( $ conditions ) ; }
Proxies the operation to the target table's exists method after
appending the default conditions for this association

@param array|callable|\Cake\Database\ExpressionInterface $conditions The conditions to use
for checking if any record matches.
@see \Cake\ORM\Table::exists()
@return bool
Proxies the operation to the target table s exists method after appending the default conditions for this association