EntityMetadataWrapperException when accessing empty entity body. How can I test if body is empty first?
Just simply see the value is empty

if($node_wrapper-&gt;body-&gt;value() != ""){
 //Evaluates true
}


or use a try catch

try{
 echo $entity-&gt;body-&gt;value-&gt;value();
}catch(Exception $e){
  echo "Value does not exist continue";
}