protected function isEmbeddable($model, $relation)
    {
        if (array_key_exists($model, $this->embeddedRecords)) {
            return is_array($this->embeddedRecords[$model]) && in_array($relation, $this->embeddedRecords[$model]);
        }

        return false;
    }