code: public function getSeoField ($ctx, $handle = 'seo')
  	{
  		try {
  			$seo = null;
  
  			if (isset($ctx[$handle]))
  				$seo = $ctx[$handle];
  
  			elseif (isset($ctx['entry']) && isset($ctx['entry'][$handle]))
  				$seo = $ctx['entry'][$handle];
  
  			elseif (isset($ctx['product']) && isset($ctx['product'][$handle]))
  				$seo = $ctx['product'][$handle];
  
  			elseif (isset($ctx['category']) && isset($ctx['category'][$handle]))
  				$seo = $ctx['category'][$handle];
  
  			if ($seo instanceof SeoData)
  				return $seo;
  
  		} catch (\Exception $e) {
  			return null;
  		}
  
  		return null;
  	}
docs: =========================================================================