public function hasField($field) { $mapping = $this->schema(); return $mapping->field($field) !== null; }