public function get_value($query, $args = array()) { if ($this->query($query, $args)) { $result = $this->pdo_statement->fetch(\PDO::FETCH_NUM); return $result[0]; } else { return false; } }