Php Check If Array Of Objects Definition In C