@isset($name)
{{'name is set!'}}
@endisset
//In Controller
public function returnView() {
return View::make('view')->with('param',$param);
}
//In View
@isset($param)
@isset($records)
// $records is defined and is not null...
@endisset
<h2>{{ $item->category->category_name ? 'no category' }}</h2>