/**
  * Checks whether the embeddable field is serializable
  *
  * @param string                  $embeddableName
  * @param FieldMetadataCollection $collection
  *
  * @return bool
  */
 protected function isEmbeddableSerializable($embeddableName, FieldMetadataCollection $collection)
 {
     if ($collection->has($embeddableName)) {
         $embeddable = $collection->get($embeddableName);
         return $embeddable->hasGroup($this->context['group']) || $embeddable->hasDefaultGroup();
     }
     return false;
 }