Sprawdź, czy wartość istnieje w obiekcie PHP

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