if (filter_var($this->type_id, FILTER_VALIDATE_INT) && $this->type_id > 0) {
            $this->type = new Type($this->type_id);
        }