Periksa apakah nilai ada di objek PHP

if (property_exists($ob, 'a')) 
Yousef Qaoud