src/Database.php
public function selectVar(string $sql, array $parameters = [])
    {
        $var = false;

        $statement = $this->select($sql, $parameters);

        if ($statement === null) {
            return false;
        }

        $row = $this->read($statement);
        if ($row !== false) {
            $var = \current($row);
        }

        $statement->closeCursor();
        $statement = null;

        return $var;
    }
public function selectVar(string $sql, array $parameters = [])
    {
        $var = false;

        $statement = $this->select($sql, $parameters);

        if ($statement === null) {
            return false;
        }

        $row = $this->read($statement);
        if ($row !== false) {
            $var = \current($row);
        }

        $statement->closeCursor();
        $statement = null;

        return $var;
    }
@param string $sql
@param array  $parameters

@throws DatabaseException

@return mixed|bool