function has($key) { return getAt($this->data, $this->path ? "{$this->path}.{$key}" : $key) != null; }
function getModel($subModelPath = '') { if ($subModelPath === '') { return $this->model; } else { return getAt($this->model, $subModelPath); } }