public function exists($field, $val)
    {
        $db = $this->load();
        $result = false;
        foreach ($db as $index => $row) {
            if ($row[$field] === $val) {
                $result = true;
            }
        }
        return $result;
    }