Verifique si existe el valor en el objeto PHP

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