The Entity API provides wrapper classes you may use to make dealing with the values of
an entity's properties and fields easier. Wrappers make it easier to get and set the values
of fields and properties as well as to programmatically retrieve additional information
about these elements and iterate over lists of values in a consistent manner. For example
consider the following method of accessing the value of a field attached to a node. This is
a pattern that we see used often when working with entities in Drupal. However there are a
couple of things that make this less than ideal. For example what if the user had requested
the page in a different language? Or what about the case where the ['value'] key just
doesn't exist like with image and file fields? Using metadata wrappers from the entity
module we can access this information like so: