public function field($name) { if (in_array($name, Config::table($this->name)->fields())) { return TRUE; } throw new LazerException('Field ' . $name . ' does not exists in table "' . $this->name . '"'); }