Verifique se o valor existe no objeto PHP

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