public function whereExists(array $data)
    {
        $this->parseConstraints($data);

        $query = $this->connection->getPdo()->prepare($this->getSelectQuery());

        return $this->execute($query)->fetch();
    }
public function whereExists(array $data)
    {
        $this->parseConstraints($data);

        $query = $this->connection->getPdo()->prepare($this->getSelectQuery());

        return $this->execute($query)->fetch();
    }
public function whereExists ( array $ data ) { $ this -> parseConstraints ( $ data ) ; $ query = $ this -> connection -> getPdo ( ) -> prepare ( $ this -> getSelectQuery ( ) ) ; return $ this -> execute ( $ query ) -> fetch ( ) ; }
See if the table contains records that match the given data.

@param  array $data
@return boolean
See if the table contains records that match the given data .